import { Controller } from "egg";
export default class VideoController extends Controller {
    /**
     * 获取电影列表
     */
    public async getVideoList() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.getVideoList()
    }
    /**
     * 删除电影
     */
    public async deleteVideo() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.deleteVideo()
    }
    /**
     * 查看电影详情
     */
    public async getVideoDetail() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.getVideoDetail()
    }
    /**
     * 搜素哦
     */
    public async searchVideoByQuery() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.searchVideoByQuery()
    }
    /**
     * 保存电影修改信息
     */
    public async updateVideoInfo() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.updateVideoInfo()
    }
    /**
     * 新增电影
     */
    public async addVideo() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.addVideo()
    }
    /**
     * 更新集结内容
     */
    public async updaQisimInfo() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.updaQisimInfo()
    }
    /**
     * 下架某一集
     */
    public async deleteQisim() {
        const { ctx } = this;
        ctx.body = await this.service.admin.video.deleteQisim()
    }
}